package com.homedo.odin.solution.model.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.List;
import lombok.Data;

/**
 * @author: zhaoxudong
 * @date: 2018/3/9 9:44
 * @Description: 带分页信息的响应
 */
@ApiModel(description = "分页基本信息")
@Data
public class PageResponse<T> extends BaseResponse {

    @ApiModelProperty("数据列表")
    private List<T> list;

    @ApiModelProperty("总数")
    private Long total;

    @ApiModelProperty("总页数")
    private Integer pages;

    @ApiModelProperty("当前页码")
    private Integer pageNum;

    @ApiModelProperty("每页数量")
    private Integer pageSize;
}
